package com.fiap.gestaoPassagens.aeroporto;

import java.sql.SQLException;
import java.util.List;

public class AeroportoService {
	
	public List<AeroportoBean> listAeroporto(AeroportoBean aeroportoBean)
			throws SQLException {
		AeroportoDao aDao = new AeroportoDao();
		return aDao.listAeroporto(aeroportoBean);
	}
	
	public AeroportoBean getAeroportoBean(AeroportoBean aeroportoBean)
			throws SQLException {
		AeroportoDao aDao = new AeroportoDao();
		return aDao.listAeroporto(aeroportoBean).get(0);
	}
}
